import request from '@/utils/request'

// 查询医疗器械列表
export function listTdmYiYiLiaoQiXie(query) {
  return request({
    url: '/tdmdata/TdmYiYiLiaoQiXie/list',
    method: 'get',
    params: query
  })
}

// 查询医疗器械详细
export function getTdmYiYiLiaoQiXie(id) {
  return request({
    url: '/tdmdata/TdmYiYiLiaoQiXie/' + id,
    method: 'get'
  })
}

// 新增医疗器械
export function addTdmYiYiLiaoQiXie(data) {
  return request({
    url: '/tdmdata/TdmYiYiLiaoQiXie',
    method: 'post',
    data: data
  })
}

// 修改医疗器械
export function updateTdmYiYiLiaoQiXie(data) {
  return request({
    url: '/tdmdata/TdmYiYiLiaoQiXie',
    method: 'put',
    data: data
  })
}

// 删除医疗器械
export function delTdmYiYiLiaoQiXie(id) {
  return request({
    url: '/tdmdata/TdmYiYiLiaoQiXie/' + id,
    method: 'delete'
  })
}
// 审核
export function to_examine(id,shenHe,pinZhong) {
  const data = {id, shenHe,pinZhong}
  return request({
    url: '/admin/examine',
    method: 'put',
    data:data
  })
}
